package com.winsdom.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.winsdom.dto.CustomerBillingHeaderDTO;
import com.winsdom.entity.CustomerBillingHeader;
import com.winsdom.entity.vo.CustomerBillingHeaderVo;
import com.winsdom.vo.CustomerBillingHeaderQueryVO;
import com.winsdom.vo.CustomerBillingHeaderUpdateVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.winsdom.dto.CustomerBillingHeaderCreateDTO;
import java.util.List;

/**
 * <p>
 * 客户开票抬头表 服务类
 * </p>
 *
 * @author 
 * @since 2025-05-12
 */
public interface ICustomerBillingHeaderService extends IService<CustomerBillingHeader> {
      CustomerBillingHeader getHeder(String projectName);

    /**
     * 更新发票抬头信息
     * @param updateVO 更新信息
     */
    void updateHeader(CustomerBillingHeaderUpdateVO updateVO);

    IPage<CustomerBillingHeaderVo> headerPageList(CustomerBillingHeaderDTO customerBillingHeaderDTO);

    IPage<CustomerBillingHeaderVo> header1(CustomerBillingHeaderDTO customerBillingHeaderDTO1);

    void updateAuditResult(CustomerBillingHeaderDTO dto);
    void updateAuditStatus(CustomerBillingHeaderDTO dto);

    /**
     * 创建发票抬头
     * @param createDTO 创建参数
     * @return 创建的抬头ID
     */
    Long createHeader(CustomerBillingHeaderCreateDTO createDTO);

    /**
     * 根据客户ID查询发票抬头信息列表
     * @param customerId 客户ID
     * @return 发票抬头信息列表
     */
    List<CustomerBillingHeaderQueryVO> getHeadersByCustomerId(Long customerId);

    /**
     * 切换发票抬头启用状态
     * @param headerId 抬头ID
     */
    void toggleHeaderStatus(Long headerId);

    /**
     * 删除发票抬头
     * @param headerId 抬头ID
     */
    void deleteHeader(Long headerId);
}
